package com.imu.enums;

/**
 * 订单类型
 * @author wangwenbing
 * @email wangwenbing@imu.com
 * @date 2018-3-27 17:33
 * Copyright (c) 2018 武汉核控科技 版权所有 
 * HeKong CO.,LTD. All Rights Reserved. 
 */
public enum TradeType {
	IMU(0, "IMU"), //IMU数量
	YTF(1, "以太坊"), //以太坊数量
	BJ(2, "易买宝"),//易买宝数量
	ICO(3, "KCT"), //KCT数量
	LK_ETH(4, "GET"), //锁仓GET数量
	LK_COWRY(5, "贝壳"), //锁仓贝壳数量
	HBC(6, "HBC"),//HBC俱乐部
	BTC(7, "BTC"),//交易员
	FCG(8, "FCG"),//智多星
	HBB(9, "HBB"),//俱乐部锁仓
	FEN(10, "FEN"),//合营分
	LOCK_BJ(11, "锁仓易买宝"),//锁仓易买宝数量
	LOCK_IMU(12, "锁仓IMU"),//锁仓IMU数量
	LOCK_FCG(13, "锁仓FCG"),//锁仓智多星数量
	LOCK_ICO(14, "锁仓ICO"),//锁仓KCT数量
	ETH(15, "GET"),//GET数量
	COWRY(16, "COWRY")//贝壳数量
	;
	
	private int type;
	private String desc;

	private TradeType(int type, String desc) {
		this.type = type;
		this.desc = desc;
	}

	public int getType() {
		return this.type;
	}

	public void setType(int type) {
		this.type = type;
	}
	
	public String getDesc() {
		return this.desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	public static String getByType(int type)
	{
		for (TradeType e : TradeType.values()) {
			if(e.getType() == type) return e.getDesc();
		}
		
		return String.valueOf(type);
	}
}
